<template>
  <div>
    <svg-icon
      style="color: #fff; width: 20px; height: 20px; cursor: pointer"
      @click="changeScreen"
      icon-class="fullscreen"
    />
  </div>
</template>

<script>
import ScreenFull from "screenfull";
export default {
  methods: {
    changeScreen() {
      if (!ScreenFull.isEnabled) {
        this.$message.warning("此时全屏组件不可用");
        return;
      }
      ScreenFull.toggle();
    },
  },
};
</script>

<style></style>
